﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Urb.Weather.Core.MeasureUnit;

namespace Urb.Weather.Core.UI
{
    public class ConditionComponentDataView<U>
        where U : struct
    {
        public string SourceName { get; set; }
        public DateTimeOffset? MeasurementTime { get; set; }
        public decimal? Value { get; set; }
        public U? Unit { get; set; }
    }

    public class TemperatureConditionComponentDataView : ConditionComponentDataView<TemperatureUnit>
    {
    }

    public class PressureConditionComponentDataView : ConditionComponentDataView<PressureUnit>
    {
    }
}
